Platform Explorer / Nuxeo Platform LTS 2017 9.10

Contribution org.nuxeo.ecm.platform.ui.select2.actions--filters

This contribution is part of XML component org.nuxeo.ecm.platform.ui.select2.actions inside nuxeo-platform-ui-select2-9.10.jar /OSGI-INF/actions-contrib.xml

Extension Point

Extension point filters of component ActionService.

Contributed Items

  • <filter id="canAddEntryFromSuggestDirectoryWidget">
          <documentation>
            <p>
              Filter used by the "suggestOneDirectory" and "suggestManyDirectory"
              widget types to check wether the "Add new entry" button should be
              displayed.
            </p>
            <p>
              This filter is a combination of default filters controlling access to
              the "Vocabularies" tab in Admin Center and read-only configuration set
              on the directory.
            </p>
            <p>
              This filter is evaluated in a context where the variable
              'directoryName' is set to the currently selected directory name.
            </p>
            @since 5.9.1
          </documentation>
          <rule grant="true">
            <condition>currentUser.administrator</condition>
            <condition>currentUser.isMemberOf('powerusers')</condition>
          </rule>
          <rule grant="false">
            <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
          </rule>
        </filter>

    @since 5.9.1

XML Source

<extension point="filters" target="org.nuxeo.ecm.platform.actions.ActionService">

    <filter id="canAddEntryFromSuggestDirectoryWidget">
      <documentation>
        <p>
          Filter used by the "suggestOneDirectory" and "suggestManyDirectory"
          widget types to check wether the "Add new entry" button should be
          displayed.
        </p>
        <p>
          This filter is a combination of default filters controlling access to
          the "Vocabularies" tab in Admin Center and read-only configuration set
          on the directory.
        </p>
        <p>
          This filter is evaluated in a context where the variable
          'directoryName' is set to the currently selected directory name.
        </p>
        @since 5.9.1
      </documentation>
      <rule grant="true">
        <condition>currentUser.administrator</condition>
        <condition>currentUser.isMemberOf('powerusers')</condition>
      </rule>
      <rule grant="false">
        <condition>#{directoryUIActions.isReadOnly(directoryName)}</condition>
      </rule>
    </filter>

  </extension>